Ext.define('iMedproplus.view.admin.dictionary.Icd9Grid', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.admindictionaryicd9grid',
    store: 'iMedproplus.store.Icd9',
    id: 'icd9-gridpanel',
    autoScroll: true,
    requires: [
    'Ext.grid.PagingScroller'
    ],
    flex: 1,
    layout: {
        type: 'vbox'
    },
    
    initComponent: function() {
        var me = this;
        Ext.applyIf(me, {
            columns: [
            {
                xtype: 'rownumberer',
                width: 50,
                sortable: false
            },
            {
                xtype: 'gridcolumn',
                dataIndex: 'code',
                text: 'Kod'
            },
            {
                xtype: 'gridcolumn',
                dataIndex: 'name',
                text: 'Nazwa'
            },
            {
                xtype: 'gridcolumn',
                dataIndex: 'status',
                text: 'Status',
                align: 'center'
            }   
            ],
            viewConfig: {
                trackOver: false
            }
        });

        me.callParent(arguments);
    }

});